<ClinicalDocument
    xmlns="urn:hl7-org:v3"
    xmlns:mif="urn:hl7-org:v3/mif"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="urn:hl7-org:v3 ..\sdschemas\SDA.xsd">
    <realmCode code="CN"/>
    <typeId root="2.16.840.1.113883.1.3" extension="POCD_MT000040"/>
    <templateId root="2.16.156.10011.2.1.1.8"/>
    <!--表单编号 [1..1] -->
    <id root="2.16.156.10011.1.1.1.2" extension="${docData.id}"/>
    <!--文档类别代码-->
    <code code="HSDB02.04" codeSystem="2.16.156.10011.2.4" codeSystemName="卫生信息共享文档编码体
系"/>
    <title>产后42天健康体检</title>
    <!--文档生效时间 [1..1]-->
    <effectiveTime value="${docData.effectiveTime}"/>
    <!--文档密级 默认值 [1..1] -->
    <confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25" codeSystemName="Confidentiality" 
displayName="正常访问保密级别"/>
    <!--文档语言 [1..1] 默认值 code="zh-CN" 含义：中文字符编码-->
    <languageCode code="zh-CN"/>
    <setId/>
    <versionNumber/>
    <!--文档记录对象 -->
    <recordTarget contextControlCode="OP">
      <patientRole>
        <id root="2.16.156.10011.1.2" extension="${docData.patientRole.id}"/>
        <patient>
            <#if docData.patientRole.patient.id??>
          <id root="2.16.156.10011.1.3" extension="${docData.patientRole.patient.id}"/>
            </#if>
          <name>${docData.patientRole.patient.name}</name>
        </patient>
      </patientRole>
    </recordTarget>
    <#include "fragment/header/author.ftl">
    <#include "fragment/header/custodian.ftl">
    <relatedDocument typeCode="RPLC">
        <parentDocument classCode="DOCCLIN" moodCode="EVN">
            <id root="2.16.156.10011.1.1.1.2" extension="D2011000000"/>
            <setId/>
            <versionNumber value="1"/>
        </parentDocument>
    </relatedDocument>
    <component>
    <structuredBody>
   <component>
        <section>
          <code code="11450-4" codeSystem="2.16.840.1.113883.6.1" displayName="PROBLEM LIST" codeSystemName="LOINC"/>
          <text/>
          <entry>
            <observation moodCode="EVN" classCode="OBS">
              <code code="DE04.01.121.00" codeSystem="2.16.156.10011.2.2.1" displayName="健康状况详细描述" codeSystemName="卫生信息数据元目录"/>
              <value xsi:type="ST">${docData.jianKangWT.jianKangZTMS}</value>
            </observation>
          </entry>
          <entry>
            <observation moodCode="EVN" classCode="OBS">
              <code code="DE04.01.122.00" codeSystem="2.16.156.10011.2.2.1" displayName="心理状况详细描述" codeSystemName="卫生信息数据元目录"/>
              <value xsi:type="ST">${docData.jianKangWT.xinLiZTMS}</value>
            </observation>
          </entry>
        </section>
      </component>
            <!-- 生命体征章节 -->
            <component>
                <section>
                    <code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" 
displayName="VITAL SIGNS"/>
                    <text/>
                    <entry>
                        <organizer classCode="BATTERY" moodCode="EVN">
                            <statusCode/>
                            <component>
                                <observation classCode="OBS" moodCode="EVN">
                                    <code code="DE04.10.174.00" codeSystem="2.16.156.10011.2.2.1" 
codeSystemName="卫生信息数据元目录" displayName="收缩压"/>
                                    <value xsi:type="PQ" value="120" unit="mmHg"></value>
                                </observation>
                            </component>
                            <component>
                                <observation classCode="OBS" moodCode="EVN">
                                    <code code="DE04.10.176.00" codeSystem="2.16.156.10011.2.2.1" 
codeSystemName="卫生信息数据元目录" displayName="舒张压"/>
                                    <value xsi:type="PQ" value="60" unit="mmHg"/>
                                </observation>
                            </component>
                        </organizer>
                    </entry>
                </section>
            </component>
            <component>
        <section>
          <code code="10193-1" codeSystem="2.16.840.1.113883.6.1" displayName=" Breasts" codeSystemName="LOINC"/>
          <text/>
          <entry>
            <observation moodCode="EVN" classCode="OBS">
              <code code="DE04.10.159.00" codeSystem="2.16.156.10011.2.2.1" displayName="乳腺检查结果代码" codeSystemName="卫生信息数据元目录">
                <qualifier>
                  <name displayName="左侧"/>
                </qualifier>
              </code>
              <value code="${docData.ruXian.zuoCe.code}" xsi:type="CD" codeSystem="2.16.156.10011.2.3.1.66" displayName="${docData.ruXian.zuoCe.displayName}" codeSystemName="乳腺检查结果代码表"/>
            </observation>
          </entry>
          <entry>
            <observation moodCode="EVN" classCode="OBS">
              <code code="DE04.10.159.00" codeSystem="2.16.156.10011.2.2.1" displayName="乳腺检查结果代码" codeSystemName="卫生信息数据元目录">
                <qualifier>
                  <name displayName="右侧"/>
                </qualifier>
              </code>
              <value code="${docData.ruXian.youCe.code}" xsi:type="CD" codeSystem="2.16.156.10011.2.3.1.66" displayName="${docData.ruXian.youCe.displayName}" codeSystemName="乳腺检查结果代码表"/>
            </observation>
          </entry>
        </section>
      </component>
      <component>
        <section>
          <code code="11400-9" codeSystem="2.16.840.1.113883.6.1" displayName="GENITALIA" codeSystemName="LOINC"/>
          <text/>
          <entry>
            <observation moodCode="EVN" classCode="OBS">
              <code code="DE04.10.244.00" codeSystem="2.16.156.10011.2.2.1" displayName="恶露异常标志" codeSystemName="卫生信息数据元目录"/>
              <value value="${docData.shengZhiQi.eLuYCBZ}" xsi:type="BL"/>
              <#if docData.shengZhiQi.eLuQK??>
              <entryRelationship typeCode="COMP">
                <observation moodCode="EVN" classCode="OBS">
                  <code code="DE04.10.025.00" codeSystem="2.16.156.10011.2.2.1" displayName="恶露状况" codeSystemName="卫生信息数据元目录"/>
                  <value xsi:type="ST">${docData.shengZhiQi.eLuQK}</value>
                </observation>
              </entryRelationship>
              </#if>
            </observation>
          </entry>
          <entry>
            <observation moodCode="EVN" classCode="OBS">
              <code code="DE04.10.072.00" codeSystem="2.16.156.10011.2.2.1" displayName="宫体异常标志" codeSystemName="卫生信息数据元目录"/>
              <value value="${docData.shengZhiQi.gongTiYCBZ}" xsi:type="BL"/>
              <#if docData.shengZhiQi.gongTiQK??>
              <entryRelationship typeCode="COMP">
                <observation moodCode="EVN" classCode="OBS">
                  <code code="DE04.10.073.00" codeSystem="2.16.156.10011.2.2.1" displayName="宫体异常描述" codeSystemName="卫生信息数据元目录"/>
                  <value xsi:type="ST">${docData.shengZhiQi.gongTiQK}</value>
                </observation>
              </entryRelationship>
              </#if>
            </observation>
          </entry>
          <entry>
            <observation moodCode="EVN" classCode="OBS">
              <code code="DE05.01.039.00" codeSystem="2.16.156.10011.2.2.1" displayName="伤口愈合状况代码" codeSystemName="卫生信息数据元目录"/>
              <value code="${docData.shengZhiQi.shangKouYH.code}" xsi:type="CD" codeSystem="2.16.156.10011.2.3.1.110" displayName="${docData.shengZhiQi.shangKouYH.displayName}" codeSystemName="伤口愈合状况代码表"/>
            </observation>
          </entry>
        </section>
      </component>
      <component>
        <section>
          <code code="51848-0" codeSystem="2.16.840.1.113883.6.1" displayName="Assessment note" codeSystemName="LOINC"/>
          <text/>
          <entry>
            <observation moodCode="EVN" classCode="OBS">
                <code code="DE05.10.127.00" codeSystem="2.16.156.10011.2.2.1" codeSystemName="卫生信息数据元目录" displayName="产妇恢复标志"/>
              <value value="${docData.jianKangPG.yiChangBZ}" xsi:type="BL"/>
              <#if docData.jianKangPG.yiChangMS??>
              <entryRelationship typeCode="COMP">
                <observation moodCode="EVN" classCode="OBS">
                  <code code="DE05.10.126.00" codeSystem="2.16.156.10011.2.2.1" displayName="孕产妇健康评估异常结果描述" codeSystemName="卫生信息数据元目录"/>
                  <value xsi:type="ST">${docData.jianKangPG.yiChangMS}</value>
                </observation>
              </entryRelationship>
              </#if>
            </observation>
          </entry>
          <entry>
            <observation classCode="OBS" moodCode="EVN">
              <code code="DE05.10.035.00" codeSystem="2.16.156.10011.2.2.1" codeSystemName="卫生信息数据元目录" displayName="结案标志"/>
              <value xsi:type="BL" value="${docData.jianKangPG.jieAnBZ}"/>
            </observation>
         </entry>
        </section>
      </component>
      <component>
        <section>
          <code code="69730-0" codeSystem="2.16.840.1.113883.6.1" displayName="Instructions" codeSystemName="LOINC"/>
          <text/>
           <#list docData.jianKangZD as item>
          <entry>
            <observation moodCode="DEF" classCode="OBS">
              <code code="DE06.00.051.00" codeSystem="2.16.156.10011.2.2.1" displayName="健康指导" codeSystemName="卫生信息数据元目录"/>
              <value code="${item.zhiDao.code}" xsi:type="CD" codeSystem="2.16.156.10011.2.3.1.195" displayName="${item.zhiDao.displayName}" codeSystemName="孕产妇健康指导类别代码表"/>
            </observation>
          </entry>
          </#list>
        </section>
      </component>
      <component>
        <section>
          <code code="18776-1" codeSystem="2.16.840.1.113883.6.1" displayName="referal" codeSystemName="LOINC"/>
          <text/>
          <entry>
            <observation moodCode="EVN" classCode="OBS">
              <code code="DE06.00.174.00" codeSystem="2.16.156.10011.2.2.1" displayName="转诊标志" codeSystemName="卫生信息数据元目录"/>
              <value value="${docData.zhuanZhenJY.zhuanZhenBZ}" xsi:type="BL"/>
              <#if docData.zhuanZhenJY.zhuanZhenYY??>
              <entryRelationship typeCode="CAUS" negationInd="false">
                <act moodCode="APT" classCode="INFRM" negationInd="false">
                  <code code="DE06.00.177.00" codeSystem="2.16.156.10011.2.2.1" displayName="转诊原因" codeSystemName="卫生信息数据元目录"/>
                  <text>${docData.zhuanZhenJY.zhuanZhenYY}</text>
                  <performer>
                    <time/>
                    <assignedEntity>
                      <id/>
                      <representedOrganization>
                       <name>${docData.zhuanZhenJY.zhuanRuKS}</name>
                        <asOrganizationPartOf>
                          <wholeOrganization>
                           <name>${docData.zhuanZhenJY.zhuanRuJG}</name>
                          </wholeOrganization>
                        </asOrganizationPartOf>
                      </representedOrganization>
                    </assignedEntity>
                  </performer>
                </act>
              </entryRelationship>
              </#if>
            </observation>
          </entry>
        </section>
      </component>
      <component>
        <section>
          <code displayName="下次随访安排"/>
          <text/>
          <entry>
            <observation moodCode="DEF" classCode="OBS">
              <code code="DE06.00.109.00" codeSystem="2.16.156.10011.2.2.1" displayName="下次随访日期" codeSystemName="卫生信息数据元目录"/>
              <value value="${docData.xiaCiSF.xiaCiSFSJ}" xsi:type="TS"/>
            </observation>
          </entry>
        </section>
      </component>
        </structuredBody>
    </component>
</ClinicalDocument>